#ifndef TEACHERTERMINAL_H
#define TEACHERTERMINAL_H

#include <QTcpSocket>
#include <QWidget>
#include <QIcon>
#include <QSize>
#include <QDebug>
#include <QPushButton>
#include <QMessageBox>
#include <QJsonObject>
#include <QJsonDocument>
#include <QBuffer>
#include <memory>

#include <QTextCodec>   // 用于处理文本编码和解码的类

#include "networkmanager.h"
#include "define.h"

namespace Ui {
class TeacherTerminal;
}

struct QtTeacherTer;


class TeacherTerminal : public QWidget
{
    Q_OBJECT

public:
    explicit TeacherTerminal(QWidget *parent = nullptr,NetworkManager *networkManager = nullptr);
    ~TeacherTerminal();


private:
    Ui::TeacherTerminal *ui;
    QtTeacherTer *p;
    QTcpSocket socket;              // 用于实现TCP网络通信

    QByteArray buffer;                  // 缓冲区
};

#endif // TEACHERTERMINAL_H
